package com.choudou5.solr.bean.common;

import java.io.Serializable;
import java.util.List;

/**
 * @name datatables js 数据格式
 * @author choudou5
 * @date 2018/7/17
 */
public class DataTableBean<T> implements Serializable {

    private int draw = 0; //分页码
    private long recordsTotal = 0;  //总记录数
    private long recordsFiltered = 0; //查询命中数
    private List<T> data;

    public DataTableBean() {
    }

    public DataTableBean(int draw) {
        this.draw = draw;
    }

    public int getDraw() {
        return draw;
    }

    public void setDraw(int draw) {
        this.draw = draw;
    }

    public long getRecordsTotal() {
        return recordsTotal;
    }

    public void setRecordsTotal(long recordsTotal) {
        this.recordsTotal = recordsTotal;
    }

    public long getRecordsFiltered() {
        return recordsFiltered;
    }

    public void setRecordsFiltered(long recordsFiltered) {
        this.recordsFiltered = recordsFiltered;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
